public class Book {
    public String shuming;
    public String chubanshe;
    public String zuozhe;
    public String chubanriqi;
    public void xinxi() {
        System.out.println("书名：" + this.shuming + "\t出版社：" + this.chubanshe + "\t作者：" + zuozhe + "\t出版日期：" + chubanriqi);
    }

    public static void main(String[] args) {
        Book b=new Book();
        b.shuming="Java从跨平台到跨行";
        b.chubanshe="网络平台";
        b.zuozhe="网友";
        b.chubanriqi="4月44";
        b.xinxi();
    }
}
